import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'custom',
    navigationBarTitleText: '华信管理平台',
    navigationBarBackgroundColor: '#f8f8f8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#FFFFFF',
  },
  easycom: {
    autoscan: true,
    custom: {
      "^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue",
    },
  },
  pages: [
    {
      path: 'pages/index/index',
      type: 'home'
    },
    {
      path: 'pages/login/index',
      type: 'page',
    }
  ],
  subPackages: [
    {
      root: 'oaPages',
      pages: [
        {
          path: 'index/index',
          type: 'page'
        }
      ]
    },
    {
      root: 'pmPages',
      pages: [
        {
          path: 'index/index',
          type: 'page'
        },
        {
          path: 'login/test',
          type: 'page'
        },
        {
          path: 'login/index',
          type: 'page'
        },
        {
          path: 'bpm/approval/index',
          type: 'page'
        },
        {
          path: 'project/detail/index',
          type: 'page'
        },
        {
          path: 'project/menu/index',
          type: 'page'
        }
      ]
    }
  ]
})
